// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   ApplicationService.java

package com.boci.clientapp.main;

import com.boci.clientapp.authentication.ChangePasswordDialog;
import com.boci.clientapp.authentication.LoginPanel;
import com.boci.clientapp.authentication.vo.LoginVO;
import com.boci.clientapp.orderstatus.OrderStatusScrPanel;
import com.boci.clientapp.profile.EditProfileDialog;
import com.boci.clientapp.profile.ViewProfileDialog;
import com.boci.clientapp.trading.ShowBalanceDialog;
import com.boci.clientapp.trading.handler.BalanceSummaryHandler;
import com.boci.common.constant.ClientAppConst;
import com.boci.common.constant.RequestTypeConst;
import com.boci.common.ui.AbstractPanel;
import com.boci.common.ui.AbstractTabSclPane;
import com.boci.common.ui.control.*;
import com.boci.common.util.*;
import com.boci.common.vo.ResponseVO;
import com.sun.java.swing.plaf.windows.WindowsLookAndFeel;
import java.applet.AppletContext;
import java.awt.*;
import java.awt.event.MouseAdapter;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.*;
import javax.swing.*;
import netscape.javascript.JSObject;

// Referenced classes of package com.boci.clientapp.main:
//            MainPanel, ClientAppLoader, TradingClientApp

public class ApplicationService
{

    public void refreshUIForApplet(JApplet pApplet)
    {
        try
        {
            UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
        }
        catch(Exception e)
        {
            e.printStackTrace();
        }
        pApplet.getContentPane().setLayout(new BorderLayout());
        MainPanel mainPanel = new MainPanel(false, getCurrentLocale());
        pApplet.getContentPane().add(mainPanel, "Center");
        mainApplet = pApplet;
        mainFrame = null;
        chgPassDialog = new ChangePasswordDialog(mainFrame, true, currentLocale);
        showBalanceDialog = new ShowBalanceDialog(mainFrame, true, currentLocale);
        contactUsDialog = new ContactUsDialog(mainFrame, true, currentLocale);
        disclaimerDialog = new DisclaimerDialog(mainFrame, true, currentLocale);
        viewProfileDialog = new ViewProfileDialog(mainFrame, true, currentLocale);
        editProfileDialog = new EditProfileDialog(mainFrame, true, currentLocale);
        disclaimerDialog = new DisclaimerDialog(mainFrame, true, currentLocale);
        securityDialog = new SecurityDialog(mainFrame, true, currentLocale);
        ClientAppLoader.setOptionPaneText(currentLocale);
        setText(currentLocale);
        if(isLogin())
        {
            String strModule = getMainPanel().getSelectedModuleName();
            this.mainPanel = mainPanel;
            mainPanel.showLoginPanel(false);
            mainPanel.showScreen(strModule);
            mainPanel.setAccNoList(strAccts, strAccountNo);
            LoginVO loginVO = new LoginVO(RequestTypeConst.BOCI_LOGIN_URL, "0");
            loginVO.setAAStock_Login(strAAStocks_Login);
            loginVO.setCustID(strCustID);
            loginVO.setPriAcctNo(strAccountNo);
            loginVO.setLang(strLang);
            login_quote_app(loginVO);
        } else
        {
            this.mainPanel = mainPanel;
            mainPanel.showLoginPanel(true);
        }
    }

    public void setApplet(JApplet pApplet)
    {
        mainApplet = pApplet;
    }

    public void setMainPanel(MainPanel pPanel)
    {
        mainPanel = pPanel;
    }

    public boolean isRelogin()
    {
        return reloginFlag;
    }

    public boolean isLogin()
    {
        return strUserID != null && !strUserID.trim().equals("") && strPassword != null && !strPassword.trim().equals("") && strAccountNo != null && !strAccountNo.trim().equals("");
    }

    public void setBusy(boolean pBusyFlag)
    {
        if(pBusyFlag)
        {
            mainPanel.getTab(mainPanel.getSelectedModuleName()).requestFocus();
            if(mainFrame != null)
                mainFrame.setCursor(new Cursor(3));
            else
            if(mainApplet != null)
                mainApplet.setCursor(new Cursor(3));
        } else
        if(mainFrame != null)
            mainFrame.setCursor(new Cursor(0));
        else
        if(mainApplet != null)
            mainApplet.setCursor(new Cursor(0));
    }

    public void login(String pUserID, String pPasswd, LoginVO pLoginVO)
    {
        strUserID = pUserID;
        strPassword = pPasswd;
        strCustID = pLoginVO.getCustID();
        strAccountNo = pLoginVO.getPriAcctNo();
        strAAStocks_Login = pLoginVO.getAAStock_Login();
        ArrayList acctNoList = pLoginVO.getAcctNoList();
        String strAccts[] = new String[acctNoList.size()];
        acctNoList.toArray(strAccts);
        this.strAccts = strAccts;
        mainPanel.setAccNoList(strAccts, strAccountNo);
        strLang = pLoginVO.getLang();
        if(strLang.equals("ENG"))
            setText(ClientAppConst.EN_US);
        else
        if(strLang.equals("CHI"))
            setText(ClientAppConst.ZH_HK);
        else
        if(strLang.equals("SCHI"))
            setText(ClientAppConst.ZH_CN);
        login_quote_app(pLoginVO);
        reloginFlag = false;
        OrderStatusScrPanel orderStatusPanel = (OrderStatusScrPanel)mainPanel.getTab("ORDER_STATUS_MODULE").getPanel("ORDER_STATUS_SCREEN");
        orderStatusPanel.resetSelection();
    }

    private void login_quote_app(LoginVO pLoginVO)
    {
        JSObject bociWeb = null;
        if(!ClientAppLoader.isStandalone())
        {
            Object objArgs[] = new Object[5];
            objArgs[0] = pLoginVO.getRtnCode();
            objArgs[1] = pLoginVO.getPriAcctNo();
            objArgs[2] = pLoginVO.getAAStock_Login();
            objArgs[3] = pLoginVO.getCustID();
            objArgs[4] = pLoginVO.getLang();
            try
            {
                bociWeb = JSObject.getWindow(mainApplet);
                bociWeb.call("login_quote_app", objArgs);
            }
            catch(Exception ex)
            {
                try
                {
                    mainApplet.getAppletContext().showDocument(new URL((new StringBuilder()).append("javascript:login_quote_app(\"").append(pLoginVO.getRtnCode()).append("\",").append("\"").append(pLoginVO.getPriAcctNo()).append("\",").append("\"").append(pLoginVO.getAAStock_Login()).append("\",").append("\"").append(pLoginVO.getCustID()).append("\",").append("\"").append(pLoginVO.getLang()).append("\")").toString()));
                }
                catch(MalformedURLException me) { }
            }
        }
    }

    public void chgPassword(String pPasswd, LoginVO pLoginVO)
    {
        strPassword = pPasswd;
        strCustID = pLoginVO.getCustID();
        strAccountNo = pLoginVO.getPriAcctNo();
        strAAStocks_Login = pLoginVO.getAAStock_Login();
        ArrayList acctNoList = pLoginVO.getAcctNoList();
        String strAccts[] = new String[acctNoList.size()];
        acctNoList.toArray(strAccts);
        this.strAccts = strAccts;
        mainPanel.setAccNoList(strAccts, strAccountNo);
    }

    public void logout()
    {
        strUserID = null;
        strPassword = null;
        strCustID = null;
        strAccountNo = null;
        strAAStocks_Login = null;
    }

    public String getUserID()
    {
        return strUserID;
    }

    public String getPassword()
    {
        return strPassword;
    }

    public String getCustID()
    {
        return strCustID;
    }

    public String getAccountNo()
    {
        return strAccountNo;
    }

    public void setAccountNo(String pAcctNo)
    {
        strAccountNo = pAcctNo;
        mainPanel.refreshScreen();
    }

    private ApplicationService(TradingClientApp pMainFrame, Container pContainer, Locale pLocale)
    {
        reloginFlag = false;
        msgConf = ClientAppLoader.getMessagesConfigurator();
        mainFrame = pMainFrame;
        mainApplet = null;
        currentLocale = pLocale;
        boolean standaloneFlag = true;
        mainPanel = new MainPanel(standaloneFlag, pLocale);
        chgPassDialog = new ChangePasswordDialog(mainFrame, true, pLocale);
        showBalanceDialog = new ShowBalanceDialog(mainFrame, true, pLocale);
        viewProfileDialog = new ViewProfileDialog(mainFrame, true, currentLocale);
        editProfileDialog = new EditProfileDialog(mainFrame, true, currentLocale);
        contactUsDialog = new ContactUsDialog(mainFrame, true, currentLocale);
        disclaimerDialog = new DisclaimerDialog(mainFrame, true, currentLocale);
        securityDialog = new SecurityDialog(mainFrame, true, currentLocale);
        proxyDialog = new ProxyDialog(mainFrame, true, currentLocale);
        upgradeMsgDialog = new UpgradeMsgDialog(mainFrame, true, currentLocale);
        pContainer.setLayout(new BorderLayout());
        pContainer.add(mainPanel, "Center");
    }

    private ApplicationService(JApplet pApplet, Container pContainer, Locale pLocale)
    {
        reloginFlag = false;
        msgConf = ClientAppLoader.getMessagesConfigurator();
        mainFrame = null;
        mainApplet = pApplet;
        currentLocale = pLocale;
        boolean standaloneFlag = false;
        mainPanel = new MainPanel(standaloneFlag, pLocale);
        chgPassDialog = new ChangePasswordDialog(mainFrame, true, pLocale);
        showBalanceDialog = new ShowBalanceDialog(mainFrame, true, pLocale);
        viewProfileDialog = new ViewProfileDialog(mainFrame, true, currentLocale);
        editProfileDialog = new EditProfileDialog(mainFrame, true, currentLocale);
        contactUsDialog = new ContactUsDialog(mainFrame, true, currentLocale);
        disclaimerDialog = new DisclaimerDialog(mainFrame, true, currentLocale);
        securityDialog = new SecurityDialog(mainFrame, true, currentLocale);
        pContainer.setLayout(new BorderLayout());
        pContainer.add(mainPanel, "Center");
    }

    public static ApplicationService createInstance(TradingClientApp pMainFrame, Container pContainer, Locale pDefaultLocale)
    {
        if(appService == null)
            appService = new ApplicationService(pMainFrame, pContainer, pDefaultLocale);
        return appService;
    }

    public static ApplicationService createInstance(JApplet pApplet, Container pContainer, Locale pDefaultLocale)
    {
        appService = new ApplicationService(pApplet, pContainer, pDefaultLocale);
        return appService;
    }

    public void enableAcctNo(boolean enabled)
    {
        mainPanel.enableAcctNo(enabled);
    }

    public static ApplicationService getInstance()
    {
        return appService;
    }

    public MainPanel getMainPanel()
    {
        return mainPanel;
    }

    public void setText(Locale pLocale)
    {
        currentLocale = pLocale;
        mainPanel.setText(pLocale);
        if(mainFrame != null)
            mainFrame.setTitle(ClientAppLoader.getMessagesConfigurator().getUIMessages("WINDOW.TITLE", pLocale));
        showBalanceDialog.setText(pLocale);
        chgPassDialog.setText(pLocale);
        viewProfileDialog.setText(pLocale);
        editProfileDialog.setText(pLocale);
        contactUsDialog.setText(pLocale);
        disclaimerDialog.setText(pLocale);
        securityDialog.setText(pLocale);
        if(proxyDialog != null)
            proxyDialog.setText(pLocale);
        if(upgradeMsgDialog != null)
            upgradeMsgDialog.setText(pLocale);
        ClientAppLoader.setOptionPaneText(pLocale);
    }

    public Locale getCurrentLocale()
    {
        return currentLocale;
    }

    public void showChgPassDialog(boolean pVisible)
    {
        chgPassDialog.showDialog(pVisible);
    }

    public void showChgPassDialog(String pUserID, boolean pVisible)
    {
        strUserID = pUserID;
        reloginFlag = true;
        chgPassDialog.showDialog(pVisible);
    }

    public void showContactUsDialog(boolean pVisible)
    {
        contactUsDialog.showDialog(pVisible);
    }

    public void showProxyDialog(boolean pVisible)
    {
        if(proxyDialog != null)
            proxyDialog.showDialog(pVisible);
    }

    public void showUpgradeMsgDialog(boolean pVisible, String pURL, String pUpgradeCode)
    {
        if(upgradeMsgDialog != null)
        {
            upgradeMsgDialog.setMessage(pURL, pUpgradeCode);
            upgradeMsgDialog.showDialog(pVisible);
        }
    }

    public void showDisclaimerDialog(boolean pVisible)
    {
        disclaimerDialog.setTextAreaPosition();
        disclaimerDialog.showDialog(pVisible);
    }

    public void showViewProfileDialog(boolean pVisible)
    {
        viewProfileDialog.showDialog(pVisible);
    }

    public ViewProfileDialog getViewProfileDialog()
    {
        return viewProfileDialog;
    }

    public void showEditProfileDialog(boolean pVisible)
    {
        editProfileDialog.showDialog(pVisible);
    }

    public EditProfileDialog getEditProfileDialog()
    {
        return editProfileDialog;
    }

    public ChangePasswordDialog getChangePasswordDialog()
    {
        return chgPassDialog;
    }

    public void showSecurityDialog(boolean pVisible)
    {
        securityDialog.showDialog(pVisible);
        securityDialog.setTextAreaPosition();
    }

    public void showBalanceDialog(ResponseVO pResponseVO)
    {
        showBalanceDialog.refresh(pResponseVO);
        showBalanceDialog.showDialog(true);
    }

    public void closeAllDialog()
    {
        chgPassDialog.showDialog(false);
        showBalanceDialog.showDialog(false);
        disclaimerDialog.showDialog(false);
        securityDialog.showDialog(false);
        contactUsDialog.showDialog(false);
        viewProfileDialog.showDialog(false);
        editProfileDialog.showDialog(false);
        if(proxyDialog != null)
            proxyDialog.showDialog(false);
        if(upgradeMsgDialog != null)
            upgradeMsgDialog.showDialog(false);
    }

    public void showWarningDialog(String pTitleKey, ArrayList pMsgKeys)
    {
        String strMsg = "";
        for(int i = 0; i < pMsgKeys.size(); i++)
        {
            String strKey = (String)pMsgKeys.get(i);
            String strTemp = msgConf.getErrorMessage(strKey, currentLocale);
            if(!strMsg.equals(""))
                strMsg = (new StringBuilder()).append(strMsg).append("\n").toString();
            strMsg = (new StringBuilder()).append(strMsg).append(strTemp).toString();
        }

        showWarningDialog(pTitleKey, strMsg);
    }

    public void showWarningDialog(String pTitleKey, String pMsg)
    {
        if(pTitleKey == null)
            pTitleKey = "COMMON.DIALOG_TITLE";
        String strTitle = msgConf.getErrorMessage(pTitleKey, currentLocale);
        String strOK = msgConf.getUIMessages("COMMON.OK", currentLocale);
        Object options[] = {
            strOK
        };
        JOptionPane.showOptionDialog(mainFrame, pMsg, strTitle, -1, 2, null, options, options[0]);
        setFocus();
    }

    public void showErrorDialog(String pTitleKey, String pMsg)
    {
        if(pTitleKey == null)
            pTitleKey = "COMMON.DIALOG_TITLE";
        String strTitle = msgConf.getErrorMessage(pTitleKey, currentLocale);
        String strOK = msgConf.getUIMessages("COMMON.OK", currentLocale);
        Object options[] = {
            strOK
        };
        JOptionPane.showOptionDialog(mainFrame, pMsg, strTitle, -1, 2, null, options, options[0]);
        String strTimeOut = msgConf.getErrorMessage("SESSION_EXPIRED_OR_NOT_YET_LOGIN", currentLocale);
        if(strTimeOut.equals(pMsg))
        {
            logout();
            closeAllDialog();
            mainPanel.showLoginPanel(true);
        } else
        {
            setFocus();
        }
    }

    public void showSysErrDialog()
    {
        String strMsgKey = "COMMON.UNEXPECTED_ERROR";
        String strMsg = msgConf.getErrorMessage(strMsgKey, currentLocale);
        String strTitle = msgConf.getErrorMessage("COMMON.DIALOG_TITLE", currentLocale);
        String strOK = msgConf.getUIMessages("COMMON.OK", currentLocale);
        Object options[] = {
            strOK
        };
        JOptionPane.showOptionDialog(mainFrame, strMsg, strTitle, -1, 2, null, options, options[0]);
        String strTimeOut = msgConf.getErrorMessage("SESSION_EXPIRED_OR_NOT_YET_LOGIN", currentLocale);
        if(strTimeOut.equals(strMsg))
        {
            logout();
            closeAllDialog();
            mainPanel.showLoginPanel(true);
        } else
        {
            setFocus();
        }
    }

    public void showNetworkErrDialog()
    {
        String strMsgKey = "COMMON.PROXY_ERROR";
        String strMsg = msgConf.getErrorMessage(strMsgKey, currentLocale);
        String strTitle = msgConf.getErrorMessage("COMMON.DIALOG_TITLE", currentLocale);
        String strOK = msgConf.getUIMessages("COMMON.OK", currentLocale);
        Object options[] = {
            strOK
        };
        JOptionPane.showOptionDialog(mainFrame, strMsg, strTitle, -1, 2, null, options, options[0]);
        String strTimeOut = msgConf.getErrorMessage("SESSION_EXPIRED_OR_NOT_YET_LOGIN", currentLocale);
        if(strTimeOut.equals(strMsg))
        {
            logout();
            closeAllDialog();
            mainPanel.showLoginPanel(true);
        } else
        {
            setFocus();
        }
    }

    public void showInfoDialog(String pTitleKey, String pMsg)
    {
        if(pTitleKey == null)
            pTitleKey = "COMMON.DIALOG_TITLE";
        String strTitle = msgConf.getErrorMessage(pTitleKey, currentLocale);
        String strOK = msgConf.getUIMessages("COMMON.OK", currentLocale);
        Object options[] = {
            strOK
        };
        JOptionPane.showOptionDialog(mainFrame, pMsg, strTitle, -1, 1, null, options, options[0]);
        setFocus();
    }

    public boolean showYesNoDialog(String pTitleKey, String pMsgKey)
    {
        if(pTitleKey == null)
            pTitleKey = "WINDOW.TITLE";
        String strTitle = msgConf.getUIMessages(pTitleKey, currentLocale);
        String strMsg = msgConf.getUIMessages(pMsgKey, currentLocale);
        String strYes = msgConf.getUIMessages("COMMON.YES", currentLocale);
        String strNo = msgConf.getUIMessages("COMMON.NO", currentLocale);
        Object options[] = {
            strYes, strNo
        };
        int intUserOption = JOptionPane.showOptionDialog(mainFrame, strMsg, strTitle, 0, 3, null, options, options[0]);
        return intUserOption == 0;
    }

    public boolean isValidSession()
        throws Exception
    {
        String strTimeOut;
        String appExMsg;
        try
        {
            HashMap map = new HashMap();
            map.put("selectAcct", getAccountNo());
            String strReqType = RequestTypeConst.BOCI_BALANCE_SIMPLE_URL;
            BalanceSummaryHandler handler = new BalanceSummaryHandler(strReqType);
            handler.getBalanceSummary(map);
            return true;
        }
        catch(AppException appEx)
        {
            strTimeOut = msgConf.getErrorMessage("SESSION_EXPIRED_OR_NOT_YET_LOGIN", currentLocale);
            appExMsg = appEx.getMessage();
        }
        catch(Exception sysEx)
        {
            throw sysEx;
        }
        return !strTimeOut.equals(appExMsg);
    }

    public void showGetQuoteInfo(String pMarket, String pCode)
        throws Exception
    {
        JSObject bociWeb = null;
        String lang = null;
        if(currentLocale.equals(ClientAppConst.EN_US))
            lang = "eng";
        else
        if(currentLocale.equals(ClientAppConst.ZH_CN))
            lang = "chn";
        else
        if(currentLocale.equals(ClientAppConst.ZH_HK))
            lang = "chi";
        else
            lang = "eng";
        if(!ClientAppLoader.isStandalone())
        {
            Object objArgs[] = new Object[3];
            objArgs[0] = pMarket;
            objArgs[1] = pCode;
            objArgs[2] = lang;
            try
            {
                bociWeb = JSObject.getWindow(mainApplet);
                bociWeb.call("get_quote", objArgs);
            }
            catch(Exception ex)
            {
                try
                {
                    mainApplet.getAppletContext().showDocument(new URL((new StringBuilder()).append("javascript:get_quote(\"").append(pMarket).append("\",").append("\"").append(pCode).append("\",").append("\"").append(lang).append("\")").toString()));
                }
                catch(MalformedURLException me) { }
            }
        } else
        {
            String strLink = ClientAppLoader.getAppConfigurator().getAppConfig("AASTOCK_URL");
            if(strLink == null)
                throw new Exception("AAStock link is undefined in the configuration file.");
            strLink = StringUtil.replaceText(strLink, "$$LANG$$", lang);
            String userid = strCustID;
            String digest = strAAStocks_Login;
            String mType = "";
            if(pMarket.equals("US_MARKET"))
                mType = "RUSQUOTE";
            else
            if(pMarket.equals("HK_MARKET"))
                mType = "RHKQUOTE";
            else
                mType = "RHKQUOTE";
            String strURL = (new StringBuilder()).append(strLink).append("?user_id=").append(userid).append("&digest=").append(digest).append("&symbol=").append(pCode).append("&type=").append(mType).append("&lang=").append(lang).toString();
            try
            {
                Runtime.getRuntime().exec((new StringBuilder()).append("rundll32 url.dll,FileProtocolHandler ").append(strURL).toString());
                System.gc();
            }
            catch(Exception e)
            {
                throw e;
            }
        }
    }

    public void showBOCILink()
        throws Exception
    {
        String strLink = ClientAppLoader.getAppConfigurator().getAppConfig("BOCI_URL");
        if(strLink == null)
            throw new Exception("BOCI link is undefined in the configuration file.");
        if(ClientAppLoader.isStandalone())
        {
            try
            {
                Runtime.getRuntime().exec((new StringBuilder()).append("rundll32 url.dll,FileProtocolHandler ").append(strLink).toString());
                System.gc();
            }
            catch(Exception e)
            {
                throw e;
            }
        } else
        {
            String lvLink = (new StringBuilder()).append("window.open('").append(strLink).append("', 'BOCI_LINK')").toString();
            JSObject win = null;
            try
            {
                win = JSObject.getWindow(mainApplet);
                win.eval(lvLink);
            }
            catch(Exception e)
            {
                try
                {
                    AppletContext ctx = mainApplet.getAppletContext();
                    URL strURL = new URL(strLink);
                    ctx.showDocument(strURL, "BOCI_LINK");
                }
                catch(MalformedURLException me)
                {
                    throw me;
                }
            }
        }
    }

    public String[] getAccountNos()
    {
        return strAccts;
    }

    public void setFocus()
    {
        if(chgPassDialog.isVisible())
            chgPassDialog.setDefFocus();
        else
        if(showBalanceDialog.isVisible())
            showBalanceDialog.setDefFocus();
        else
        if(viewProfileDialog.isVisible())
            viewProfileDialog.setDefFocus();
        else
        if(editProfileDialog.isVisible())
            editProfileDialog.setDefFocus();
        else
        if(contactUsDialog.isVisible())
            contactUsDialog.setDefFocus();
        else
        if(disclaimerDialog.isVisible())
            disclaimerDialog.setDefFocus();
        else
        if(securityDialog.isVisible())
            securityDialog.setDefFocus();
        else
        if(proxyDialog != null && proxyDialog.isVisible())
            proxyDialog.setDefFocus();
        else
        if(upgradeMsgDialog != null && upgradeMsgDialog.isVisible())
            upgradeMsgDialog.setDefFocus();
        else
        if(mainPanel.getLoginPanel().isVisible())
        {
            mainPanel.getLoginPanel().setDefFocus();
        } else
        {
            AbstractTabSclPane tabPane = mainPanel.getTab(mainPanel.getSelectedModuleName());
            tabPane.getCurrentScreen().setDefFocus();
        }
    }

    private static ApplicationService appService;
    private TradingClientApp mainFrame;
    private MainPanel mainPanel;
    private JApplet mainApplet;
    private String strAccountNo;
    private String strUserID;
    private String strPassword;
    private String strAAStocks_Login;
    private Locale currentLocale;
    private String strCustID;
    private boolean reloginFlag;
    private String strAccts[];
    private ChangePasswordDialog chgPassDialog;
    private ShowBalanceDialog showBalanceDialog;
    private ContactUsDialog contactUsDialog;
    private DisclaimerDialog disclaimerDialog;
    private ViewProfileDialog viewProfileDialog;
    private EditProfileDialog editProfileDialog;
    private SecurityDialog securityDialog;
    private ProxyDialog proxyDialog;
    private UpgradeMsgDialog upgradeMsgDialog;
    private MessagesConfigurator msgConf;
    private static final MouseAdapter mouseAdapter = new MouseAdapter() {

    }
;
    private String strLang;

}
